package com.sgj.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Guoji Shen
 * @Date: 2021/7/14 13:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ExcelTarget("userEntity")
public class User implements Serializable {

    @Excel(name = "姓名", width = 80, orderNum = "1")
    private String name;

    @Excel(name = "性别",replace = {"男_1", "女_0"}, orderNum = "3")
    private Integer sex;

    @Excel(name = "出生年月", exportFormat = "yyyy-MM-dd", orderNum = "4")
    private Date birthday;
}